package com.example.museum.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.museum.entity.OrderItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderItemMapper extends BaseMapper<OrderItem> {

    
    // 根据订单ID查询订单项
    @Select("SELECT * FROM order_item WHERE number = #{number}")
    List<OrderItem> selectByOrderId(String number);
}